-- GENERATED SPELL FOR [Zaeldarr the Outcast] --


function spell0_12250(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12250', 584, 1)
end

function spell1_12250(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(19128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12250', 2000, 1)
end

function Sorts_12250(pUnit, Event)
local choix_sorts_12250 = math.random(0, 1)
if choix_sorts_12250 == 0 then
pUnit:RegisterEvent('spell0_12250', 1, 1)
end
if choix_sorts_12250 == 1 then
pUnit:RegisterEvent('spell1_12250', 1, 1)
end
end

function mob12250_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12250', math.random(1500, 3000), 1)
end

function mob12250_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12250_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12250_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12250, 1, 'mob12250_Action')
RegisterUnitEvent(12250, 2, 'mob12250_Leave')
RegisterUnitEvent(12250, 3, 'mob12250_Kill')
RegisterUnitEvent(12250, 4, 'mob12250_Die')
